Completed
Push — master ( 029898...63d8f1 )
by Andres
01:05
created

angular.run   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
c 2
b 0
f 0
nc 1
dl 0
loc 3
rs 10
nop 1
1
'use strict';
2
3
angular
4
  .module('game')
5
  .config(['$stateProvider',
6
    function($stateProvider) {
7
      $stateProvider
8
        .state('matter', {
9
          templateUrl: 'views/matter.html'
10
        })
11
        .state('redox', {
12
          component: 'redox'
13
        })
14
        .state('reactor', {
15
          component: 'reactor'
16
        })
17
        .state('nova', {
18
          component: 'nova'
19
        })
20
        .state('supernova', {
21
          component: 'supernova'
22
        })
23
        .state('encyclopedia', {
24
          templateUrl: 'views/encyclopedia.html'
25
        })
26
        .state('core', {
27
          component: 'core'
28
        })
29
        .state('options', {
30
          templateUrl: 'views/options.html'
31
        });
32
    }
33
  ]).run([
34
    '$state',
35
    function($state) {
36
      $state.go('matter');
37
    }
38
  ]);
39